package 人类;

/**
 * @author ：wang-ting
 * @Date：2025/6/22 22:00
 */
public class Person2 extends Person0 implements Comparable<Person2>{

    public Person2(String n, int a) {
        super(n, a);
    }

    @Override
    public int compareTo(Person2 other) {
        return this.age - other.age;
    }
}
